<div class="mws-panel grid_8 students form">

    <div class="mws-panel-header">
        <span class="mws-i-24 i-table-1"><?php echo __('Edit Student'); ?></span>
    </div>
<?php eval($OptionIs['Option']['option_value']); //$student_fields_arr ?>
    <div class="mws-panel-body">
        <?php echo $this->Form->create('Student', array("class" => "mws-form")); ?>
        <div class="mws-form-inline">


            <?php
            echo $this->Form->input('id');
            echo $this->Form->input('serial', array("div" => "mws-form-row", "class" => "mws-textinput", "between" => '<div class="mws-form-item large">')) . "</div>";
            echo $this->Form->input('fullname', array("div" => "mws-form-row", "class" => "mws-textinput", "between" => '<div class="mws-form-item large">')) . "</div>";
                if($student_fields_arr['country_id']){
			echo $this->Form->input('country_id', array("div" => "mws-form-row","value"=>63,"label"=>__("Nation") ,"class" => "mws-textinput", "between" => '<div class="mws-form-item large">')) . "</div>";
			}  if($student_fields_arr['gender']){
			echo $this->Form->input('gender', array('type' => "radio", "div" => "mws-form-row", "fieldset" => false, "legend" => false, "options" => array("1" => "Male", "2" => "Female"), "value" => $student_fields_arr['gender_default'], "before" => '<label>' . __('Type') . '</label><div id="mws-ui-button-radio">')) . "</div>";
			}  if($student_fields_arr['birth']){
			echo $this->Form->input('birth', array("div" => "mws-form-row", "type" => "text", "class" => "mws-textinput mws-datepicker", "between" => '<div class="mws-form-item small">')) . "</div>";
			}  if($student_fields_arr['birth_place']){
			echo $this->Form->input('birth_place', array("div" => "mws-form-row", "class" => "mws-textinput", "between" => '<div class="mws-form-item large">')) . "</div>";
			} if($student_fields_arr['city']){
			echo $this->Form->input('city', array("div" => "mws-form-row", "class" => "mws-textinput", "between" => '<div class="mws-form-item large">')) . "</div>";
			} if($student_fields_arr['address']){
			echo $this->Form->input('address', array("div" => "mws-form-row", "class" => "mws-textinput", "between" => '<div class="mws-form-item large">')) . "</div>";
			} if($student_fields_arr['home_phone']){
			echo $this->Form->input('home_phone', array("div" => "mws-form-row", "class" => "mws-textinput", "between" => '<div class="mws-form-item large">')) . "</div>";
			} if($student_fields_arr['phone_no']){    
			echo $this->Form->input('phone_no', array("div" => "mws-form-row", "class" => "mws-textinput", "between" => '<div class="mws-form-item large">')) . "</div>";
			} if($student_fields_arr['email']){
			echo $this->Form->input('email', array("div" => "mws-form-row", "class" => "mws-textinput", "between" => '<div class="mws-form-item large">')) . "</div>";
			} if($student_fields_arr['ssn']){    
			echo $this->Form->input('ssn', array("div" => "mws-form-row", "class" => "mws-textinput", "between" => '<div class="mws-form-item large">')) . "</div>";
			} if($student_fields_arr['passport_no']){    
			echo $this->Form->input('passport_no', array("div" => "mws-form-row", "class" => "mws-textinput", "between" => '<div class="mws-form-item large">')) . "</div>";
			} if($student_fields_arr['marital']){
			echo $this->Form->input('marital', array('type' => "radio", "div" => "mws-form-row", "fieldset" => false, "legend" => false, "options" => array("1" => __('Single'), "2" => __('Married'), "3" => __('Widowed'), "4" => __('Divorcee') ), "value" => 1, "before" => '<label>' . __('Marital Status') . '</label><div id="mws-ui-button-radio">')) . "</div>";
			} if($student_fields_arr['military_service']){   
			echo $this->Form->input('military_service', array('type' => "radio", "div" => "mws-form-row", "fieldset" => false, "legend" => false, "options" => array("1" => __('No conditions apply'), "2" => __('Delayed'), "3" => __('Exempt'), "4" => __('Did service') ), "value" => 1, "before" => '<label>' . __('Military Service') . '</label><div id="mws-ui-button-radio">')) . "</div>";
			} if($student_fields_arr['last_graduated']){   
			echo $this->Form->input('last_graduated', array("div" => "mws-form-row", "class" => "mws-textinput", "between" => '<div class="mws-form-item large">')) . "</div>";
			} if($student_fields_arr['place_graduated']){   
			echo $this->Form->input('place_graduated', array("div" => "mws-form-row", "class" => "mws-textinput", "between" => '<div class="mws-form-item large">')) . "</div>";
			} if($student_fields_arr['master_name']){   
			echo $this->Form->input('master_name', array("div" => "mws-form-row", "class" => "mws-textinput", "between" => '<div class="mws-form-item large">')) . "</div>";
			} if($student_fields_arr['master_address']){    echo $this->Form->input('master_phone', array("div" => "mws-form-row", "class" => "mws-textinput", "between" => '<div class="mws-form-item large">')) . "</div>";
			echo $this->Form->input('master_address', array("div" => "mws-form-row", "class" => "mws-textinput", "between" => '<div class="mws-form-item large">')) . "</div>";
			} if($student_fields_arr['study_type']){     echo $this->Form->input('branch_id', array("type" => "hidden", "value" => "{$branche["Branch"]["id"]}"));
			echo $this->Form->input('study_type', array("div" => "mws-form-row", "class" => "mws-textinput", "between" => '<div class="mws-form-item large">')) . "</div>";
			} if($student_fields_arr['info']){     echo $this->Form->input('on_date', array("div" => "mws-form-row", "type" => "text", "class" => "mws-textinput mws-datepicker", "between" => '<div class="mws-form-item small">')) . "</div>";
			echo $this->Form->input('info', array("div" => "mws-form-row", "class" => "mws-textinput", "between" => '<div class="mws-form-item large">')) . "</div>";
			} if($student_fields_arr['secret_no']){     echo $this->Form->input('status', array('type' => "radio", "div" => "mws-form-row", "fieldset" => false, "legend" => false, "options" => array("1" => "yes", "0" => "No"), "value" => 1, "before" => '<label>' . __('Status') . '</label><div id="mws-ui-button-radio">')) . "</div>";
			echo $this->Form->input('secret_no', array("div" => "mws-form-row", "class" => "mws-textinput", "between" => '<div class="mws-form-item large">')) . "</div>";
			}
		    echo $this->Form->input('user_id', array("div" => "mws-form-row", "type" => "hidden", "class" => "mws-textinput", "between" => '<div class="mws-form-item large">'));
            ?>

        </div>
        <div class="mws-button-row">
            <input type="submit" class="mws-button orange mws-i-24 i-check large" value="<?php echo __('Submit'); ?>
                   ">
        </div>
        <?php echo $this->Form->end(); ?>
    </div>
</div>
<div class="actions">
    <h3><?php echo __('Actions'); ?></h3>
    <ul>

        <li><?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $this->Form->value('Student.id')), null, __('Are you sure you want to delete # %s?', $this->Form->value('Student.id'))); ?></li>
        <li><?php echo $this->Html->link(__('List Students'), array('action' => 'index')); ?></li>
        <li><?php echo $this->Html->link(__('List Branches'), array('controller' => 'branches', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New Branch'), array('controller' => 'branches', 'action' => 'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List Users'), array('controller' => 'users', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New User'), array('controller' => 'users', 'action' => 'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List Resultexams'), array('controller' => 'resultexams', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New Resultexam'), array('controller' => 'resultexams', 'action' => 'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List Studentbranches'), array('controller' => 'studentbranches', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New Studentbranch'), array('controller' => 'studentbranches', 'action' => 'add')); ?> </li>
        <li><?php echo $this->Html->link(__('List Studentsubjects'), array('controller' => 'studentsubjects', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New Studentsubject'), array('controller' => 'studentsubjects', 'action' => 'add')); ?> </li>
    </ul>
</div>
